def move_disk(source, destination):
    print("将金片从{}移动到{}".format(source, destination))

def han(n, source, auxiliary, destination):
    if n == 1:
        move_disk(source, destination)
    else:
        han(n-1, source, destination, auxiliary)
        move_disk(source, destination)
        han(n-1, auxiliary, source, destination)

n = 3  # 汉诺塔的金片数量
source = "A"  # 起始针
auxiliary = "B"  # 辅助针
destination = "C"  # 目标针

han(n, source, auxiliary, destination)
